/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.nightknight.satobee.core;

import java.util.Date;

/**
 *
 * @author nightknight
 */
public class Message {
    
    private Contact sender;
    private Contact receiver;
    private Date sendTime;
    private String content;
    private int type;
    
    public Message() {
        
    }
    
    public Message(Contact sender, Contact receiver, Date sendTime, String content, int type) {
        this.sender = sender;
        this.receiver = receiver;
        this.sendTime = sendTime;
        this.content = content;
        this.type = type;
    }
    
    public void setSender(Contact user) {
        this.sender = user;
    }
    
    public Contact getSender() {
        return this.sender;
    }
    
    public void setReceiver(Contact user) {
        this.receiver = user;
    }
    
    public Contact getReceiver(Contact user) {
        return this.receiver;
    }
    
    public void setSendTime(Date date) {
        this.sendTime = date;
    }
    
    public Date geteSendTime() {
        return this.sendTime;
    }
    
    public void setContent(String content) {
        this.content = content;
    }
    
    public String getContent() {
        return this.content;
    }
    
    public void setType(int type) {
        this.type = type;
    }
    
    public int getType() {
        return this.type;
    }
}
